.class public Lcom/glympse/android/glympse/DlgSettings;
.super Lcom/glympse/android/glympse/DlgList;
.source "DlgSettings.java"

# interfaces
.implements Lcom/glympse/platform/common/GlympseListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/android/glympse/DlgSettings$PromptForTicketCallback;,
        Lcom/glympse/android/glympse/DlgSettings$Setting;,
        Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/glympse/android/glympse/DlgList;",
        "Lcom/glympse/platform/common/GlympseListener;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# static fields
.field private static final SETTING_ABOUT:I = 0x8

.field private static final SETTING_ADD_GLYMPSE:I = 0x4

.field private static final SETTING_FACEBOOK:I = 0x3

.field private static final SETTING_FEEDBACK:I = 0x6

.field private static final SETTING_HELP:I = 0x7

.field private static final SETTING_PREFERENCES:I = 0x5

.field private static final SETTING_SET_AVATAR:I = 0x1

.field private static final SETTING_SET_NICKNAME:I = 0x0

.field private static final SETTING_TWITTER:I = 0x2


# instance fields
.field private m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "oContext"

    .prologue
    const/4 v0, 0x0

    .line 57
    invoke-direct {p0, p1, v0}, Lcom/glympse/android/glympse/DlgList;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 52
    iput-object v0, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    .line 58
    const v0, 0x7f02004e

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/DlgSettings;->SetTitleIcon(I)V

    .line 59
    const v0, 0x7f0a000e

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/DlgSettings;->SetTitleText(I)V

    .line 60
    return-void
.end method


# virtual methods
.method public DoUpdate(I)V
    .locals 1
    .parameter "nUpdateFlags"

    .prologue
    .line 133
    const v0, 0x40002400

    and-int/2addr v0, p1

    if-eqz v0, :cond_0

    .line 135
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;->notifyDataSetChanged()V

    .line 137
    :cond_0
    return-void
.end method

.method protected OnAbout()V
    .locals 9

    .prologue
    const/4 v1, 0x0

    .line 335
    const-string v5, "Version 1.28 (build 130)\n\n\u00a92007-2011 Glympse Inc.\nGlympse and the Glympse logos are registered trademarks of Glympse Inc.\nAll rights reserved.\nPatents pending.\n\nFor details and policies, please go to www.glympse.com"

    .line 342
    .local v5, strAbout:Ljava/lang/String;
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    .line 344
    const-string v2, "About"

    .line 345
    const v3, 0x7f0a004d

    .line 346
    const v4, 0x7f02003e

    .line 349
    const v7, 0x7f0a005a

    .line 350
    const/4 v8, 0x0

    move v6, v1

    .line 342
    invoke-virtual/range {v0 .. v8}, Lcom/glympse/android/glympse/Glympse;->MessageBox(ZLjava/lang/String;IILjava/lang/String;IILcom/glympse/android/glympse/DlgShell$DlgShellListener;)V

    .line 351
    return-void
.end method

.method public PromptForTicket()V
    .locals 12

    .prologue
    const/4 v2, 0x0

    .line 205
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    .line 206
    const-string v1, "PromptForTicket"

    .line 208
    const v3, 0x7f0a007c

    .line 209
    const v4, 0x7f02003f

    .line 210
    const v5, 0x7f0a007d

    .line 211
    const v6, 0x7f0a005b

    .line 212
    const v7, 0x7f0a0059

    .line 213
    const-string v8, ""

    .line 214
    const/16 v9, 0x64

    .line 216
    new-instance v11, Lcom/glympse/android/glympse/DlgSettings$PromptForTicketCallback;

    invoke-direct {v11, p0}, Lcom/glympse/android/glympse/DlgSettings$PromptForTicketCallback;-><init>(Lcom/glympse/android/glympse/DlgSettings;)V

    move v10, v2

    .line 205
    invoke-virtual/range {v0 .. v11}, Lcom/glympse/android/glympse/Glympse;->PromptForString(Ljava/lang/String;ZIIIIILjava/lang/String;IZLcom/glympse/android/glympse/DlgShell$DlgShellListener;)V

    .line 217
    return-void
.end method

.method protected SetAvatarIcon()V
    .locals 6

    .prologue
    .line 222
    iget-object v4, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    if-eqz v4, :cond_0

    .line 224
    iget-object v4, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/glympse/android/glympse/DlgSettings$Setting;

    .line 225
    .local v1, oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    if-eqz v1, :cond_0

    iget-object v4, v1, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    if-eqz v4, :cond_0

    .line 227
    iget-object v4, v1, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    const v5, 0x7f0c006f

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 228
    .local v2, oTextSetting:Landroid/widget/TextView;
    iget-object v4, v1, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    const v5, 0x7f0c007b

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 230
    .local v0, oImageView:Landroid/widget/ImageView;
    if-eqz v2, :cond_0

    if-eqz v0, :cond_0

    .line 232
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v4

    iget-object v4, v4, Lcom/glympse/platform/Platform;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v4}, Lcom/glympse/platform/common/UserList;->GetSelf()Lcom/glympse/platform/common/User;

    move-result-object v3

    .line 233
    .local v3, oUser:Lcom/glympse/platform/common/User;
    if-eqz v3, :cond_1

    iget-object v4, v3, Lcom/glympse/platform/common/User;->m_oImageAvatar:Lcom/glympse/platform/GImage;

    if-eqz v4, :cond_1

    iget-object v4, v3, Lcom/glympse/platform/common/User;->m_oImageAvatar:Lcom/glympse/platform/GImage;

    iget-object v4, v4, Lcom/glympse/platform/GImage;->m_oDrawable:Landroid/graphics/drawable/BitmapDrawable;

    if-eqz v4, :cond_1

    .line 235
    const v4, 0x7f0a0031

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 236
    iget-object v4, v3, Lcom/glympse/platform/common/User;->m_oImageAvatar:Lcom/glympse/platform/GImage;

    iget-object v4, v4, Lcom/glympse/platform/GImage;->m_oDrawable:Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 246
    .end local v0           #oImageView:Landroid/widget/ImageView;
    .end local v1           #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .end local v2           #oTextSetting:Landroid/widget/TextView;
    .end local v3           #oUser:Lcom/glympse/platform/common/User;
    :cond_0
    :goto_0
    return-void

    .line 240
    .restart local v0       #oImageView:Landroid/widget/ImageView;
    .restart local v1       #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .restart local v2       #oTextSetting:Landroid/widget/TextView;
    .restart local v3       #oUser:Lcom/glympse/platform/common/User;
    :cond_1
    const v4, 0x7f0a0030

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 241
    const v4, 0x7f0200bc

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method

.method protected SetFacebook()V
    .locals 4

    .prologue
    .line 308
    iget-object v2, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    if-eqz v2, :cond_0

    .line 310
    iget-object v2, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/glympse/android/glympse/DlgSettings$Setting;

    .line 311
    .local v0, oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    if-eqz v0, :cond_0

    iget-object v2, v0, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    if-eqz v2, :cond_0

    .line 313
    iget-object v2, v0, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    const v3, 0x7f0c007c

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 315
    .local v1, oTextNickname:Landroid/widget/TextView;
    if-eqz v1, :cond_0

    .line 317
    sget-object v2, Lcom/glympse/android/glympseservice/GlympseService;->ms_oThis:Lcom/glympse/android/glympseservice/GlympseService;

    invoke-virtual {v2}, Lcom/glympse/android/glympseservice/GlympseService;->GetFacebook()Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v2

    invoke-virtual {v2}, Lcom/glympse/android/glympseservice/FacebookWrapper;->IsSignedIn()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 319
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v2

    iget-object v2, v2, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v2, v2, Lcom/glympse/platform/Config;->m_strFacebookName:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 320
    const-string v2, "Signed In"

    .line 319
    :goto_0
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 329
    .end local v0           #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .end local v1           #oTextNickname:Landroid/widget/TextView;
    :cond_0
    :goto_1
    return-void

    .line 320
    .restart local v0       #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .restart local v1       #oTextNickname:Landroid/widget/TextView;
    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Signed In: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v3

    iget-object v3, v3, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v3, v3, Lcom/glympse/platform/Config;->m_strFacebookName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    .line 324
    :cond_2
    const v2, 0x7f0a0035

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_1
.end method

.method protected SetNickname()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 251
    iget-object v4, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    if-eqz v4, :cond_0

    .line 253
    iget-object v4, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    invoke-virtual {v4, v6}, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/glympse/android/glympse/DlgSettings$Setting;

    .line 254
    .local v0, oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    if-eqz v0, :cond_0

    iget-object v4, v0, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    if-eqz v4, :cond_0

    .line 256
    iget-object v4, v0, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    const v5, 0x7f0c006f

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 257
    .local v2, oTextSetting:Landroid/widget/TextView;
    iget-object v4, v0, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    const v5, 0x7f0c007c

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 259
    .local v1, oTextNickname:Landroid/widget/TextView;
    if-eqz v2, :cond_0

    if-eqz v1, :cond_0

    .line 261
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v4

    iget-object v4, v4, Lcom/glympse/platform/Platform;->m_oUserList:Lcom/glympse/platform/common/UserList;

    invoke-virtual {v4}, Lcom/glympse/platform/common/UserList;->GetSelf()Lcom/glympse/platform/common/User;

    move-result-object v3

    .line 262
    .local v3, oUser:Lcom/glympse/platform/common/User;
    if-eqz v3, :cond_1

    iget-object v4, v3, Lcom/glympse/platform/common/User;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 264
    const v4, 0x7f0a002f

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 265
    iget-object v4, v3, Lcom/glympse/platform/common/User;->m_strDisplayName:Ljava/lang/String;

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 266
    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 277
    .end local v0           #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .end local v1           #oTextNickname:Landroid/widget/TextView;
    .end local v2           #oTextSetting:Landroid/widget/TextView;
    .end local v3           #oUser:Lcom/glympse/platform/common/User;
    :cond_0
    :goto_0
    return-void

    .line 270
    .restart local v0       #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .restart local v1       #oTextNickname:Landroid/widget/TextView;
    .restart local v2       #oTextSetting:Landroid/widget/TextView;
    .restart local v3       #oUser:Lcom/glympse/platform/common/User;
    :cond_1
    const v4, 0x7f0a002e

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 271
    const/16 v4, 0x8

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setVisibility(I)V

    .line 272
    const-string v4, ""

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method protected SetTwitter()V
    .locals 4

    .prologue
    .line 282
    iget-object v2, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    if-eqz v2, :cond_0

    .line 284
    iget-object v2, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/glympse/android/glympse/DlgSettings$Setting;

    .line 285
    .local v0, oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    if-eqz v0, :cond_0

    iget-object v2, v0, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    if-eqz v2, :cond_0

    .line 287
    iget-object v2, v0, Lcom/glympse/android/glympse/DlgSettings$Setting;->m_oView:Landroid/view/View;

    const v3, 0x7f0c007c

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 289
    .local v1, oTextNickname:Landroid/widget/TextView;
    if-eqz v1, :cond_0

    .line 291
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v2

    iget-object v2, v2, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    invoke-virtual {v2}, Lcom/glympse/platform/Config;->HasTwitterCredentials()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 293
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v2

    iget-object v2, v2, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v2, v2, Lcom/glympse/platform/Config;->m_strTwitterName:Ljava/lang/String;

    invoke-static {v2}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 294
    const-string v2, "Signed In"

    .line 293
    :goto_0
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 303
    .end local v0           #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .end local v1           #oTextNickname:Landroid/widget/TextView;
    :cond_0
    :goto_1
    return-void

    .line 294
    .restart local v0       #oSetting:Lcom/glympse/android/glympse/DlgSettings$Setting;
    .restart local v1       #oTextNickname:Landroid/widget/TextView;
    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Signed In: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v3

    iget-object v3, v3, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v3, v3, Lcom/glympse/platform/Config;->m_strTwitterName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    .line 298
    :cond_2
    const v2, 0x7f0a0035

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    goto :goto_1
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 8
    .parameter "savedInstanceState"

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x1

    .line 65
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->getContext()Landroid/content/Context;

    move-result-object v1

    .line 68
    .local v1, oContext:Landroid/content/Context;
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 69
    .local v0, listSettings:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/glympse/android/glympse/DlgSettings$Setting;>;"
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a002e

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f02009d

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 70
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a0030

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4, v7, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 71
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a0033

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f02009f

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 72
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a0034

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f02009a

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 73
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a0032

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f020099

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 74
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a002c

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f02009e

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 75
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a002d

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f02009b

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 76
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a0036

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f02009c

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 77
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$Setting;

    const v4, 0x7f0a0037

    invoke-virtual {v1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    const v5, 0x7f020098

    invoke-direct {v3, v4, v5, v6}, Lcom/glympse/android/glympse/DlgSettings$Setting;-><init>(Ljava/lang/String;IZ)V

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 80
    new-instance v3, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, p0, v4, v0}, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;-><init>(Lcom/glympse/android/glympse/DlgSettings;Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v3, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    .line 81
    iget-object v3, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    invoke-virtual {p0, v3, p0, v7}, Lcom/glympse/android/glympse/DlgSettings;->SetListAdapter(Landroid/widget/ListAdapter;Landroid/widget/AdapterView$OnItemClickListener;Z)Landroid/widget/ListView;

    move-result-object v2

    .line 84
    .local v2, oListView:Landroid/widget/ListView;
    invoke-virtual {v2}, Landroid/widget/ListView;->requestFocus()Z

    .line 85
    invoke-virtual {v2, v7}, Landroid/widget/ListView;->setSelection(I)V

    .line 88
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v3

    invoke-virtual {v3, p0}, Lcom/glympse/platform/Platform;->AddGlympseListener(Lcom/glympse/platform/common/GlympseListener;)V

    .line 90
    invoke-super {p0, p1}, Lcom/glympse/android/glympse/DlgList;->onCreate(Landroid/os/Bundle;)V

    .line 91
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 111
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/glympse/platform/Platform;->RemoveGlympseListener(Lcom/glympse/platform/common/GlympseListener;)V

    .line 113
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    .line 115
    invoke-super {p0}, Lcom/glympse/android/glympse/DlgList;->onDestroy()V

    .line 116
    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4
    .parameter
    .parameter "oView"
    .parameter "nPos"
    .parameter "lRow"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .local p1, oAdapterView:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    const/4 v2, 0x0

    .line 142
    packed-switch p3, :pswitch_data_0

    .line 200
    :cond_0
    :goto_0
    return-void

    .line 145
    :pswitch_0
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    const/4 v1, 0x0

    invoke-virtual {v0, v2, v1}, Lcom/glympse/android/glympse/Glympse;->PromptForNickname(ZLcom/glympse/android/glympse/DlgShell$DlgShellListener;)V

    goto :goto_0

    .line 149
    :pswitch_1
    const-class v0, Lcom/glympse/android/glympse/DlgAvatarPicker;

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/DlgBase;->IsCreated(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 151
    new-instance v0, Lcom/glympse/android/glympse/DlgAvatarPicker;

    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/glympse/android/glympse/DlgAvatarPicker;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgAvatarPicker;->show()V

    goto :goto_0

    .line 156
    :pswitch_2
    const-class v0, Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/DlgBase;->IsCreated(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 158
    new-instance v0, Lcom/glympse/android/glympse/DlgTwitterSettings;

    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, v2}, Lcom/glympse/android/glympse/DlgTwitterSettings;-><init>(Landroid/content/Context;Z)V

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->show()V

    goto :goto_0

    .line 163
    :pswitch_3
    const-class v0, Lcom/glympse/android/glympse/DlgFacebookSettings;

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/DlgBase;->IsCreated(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 165
    new-instance v0, Lcom/glympse/android/glympse/DlgFacebookSettings;

    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, v2}, Lcom/glympse/android/glympse/DlgFacebookSettings;-><init>(Landroid/content/Context;Z)V

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgFacebookSettings;->show()V

    goto :goto_0

    .line 170
    :pswitch_4
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->PromptForTicket()V

    goto :goto_0

    .line 174
    :pswitch_5
    const-class v0, Lcom/glympse/android/glympse/DlgPreferences;

    invoke-virtual {v0}, Ljava/lang/Class;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympse/DlgBase;->IsCreated(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 176
    new-instance v0, Lcom/glympse/android/glympse/DlgPreferences;

    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/glympse/android/glympse/DlgPreferences;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgPreferences;->show()V

    goto :goto_0

    .line 181
    :pswitch_6
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Feedback:Lcom/glympse/android/glympse/Glympse$EViews;

    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/Glympse;->GetCurrentEView()Lcom/glympse/android/glympse/Glympse$EViews;

    move-result-object v1

    if-eq v0, v1, :cond_0

    .line 183
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->dismiss()V

    .line 184
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    sget-object v1, Lcom/glympse/android/glympse/Glympse$EViews;->Feedback:Lcom/glympse/android/glympse/Glympse$EViews;

    sget-object v2, Lcom/glympse/android/glympse/Glympse$EAnimations;->SlideUp:Lcom/glympse/android/glympse/Glympse$EAnimations;

    sget-object v3, Lcom/glympse/android/glympse/Glympse$EAnimations;->SlideDown:Lcom/glympse/android/glympse/Glympse$EAnimations;

    invoke-virtual {v0, v1, v2, v3}, Lcom/glympse/android/glympse/Glympse;->PushView(Lcom/glympse/android/glympse/Glympse$EViews;Lcom/glympse/android/glympse/Glympse$EAnimations;Lcom/glympse/android/glympse/Glympse$EAnimations;)Lcom/glympse/android/glympse/Glympse$EViews;

    goto/16 :goto_0

    .line 189
    :pswitch_7
    sget-object v0, Lcom/glympse/android/glympse/Glympse$EViews;->Help:Lcom/glympse/android/glympse/Glympse$EViews;

    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/Glympse;->GetCurrentEView()Lcom/glympse/android/glympse/Glympse$EViews;

    move-result-object v1

    if-eq v0, v1, :cond_0

    .line 191
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->dismiss()V

    .line 192
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    sget-object v1, Lcom/glympse/android/glympse/Glympse$EViews;->Help:Lcom/glympse/android/glympse/Glympse$EViews;

    sget-object v2, Lcom/glympse/android/glympse/Glympse$EAnimations;->SlideUp:Lcom/glympse/android/glympse/Glympse$EAnimations;

    sget-object v3, Lcom/glympse/android/glympse/Glympse$EAnimations;->SlideDown:Lcom/glympse/android/glympse/Glympse$EAnimations;

    invoke-virtual {v0, v1, v2, v3}, Lcom/glympse/android/glympse/Glympse;->PushView(Lcom/glympse/android/glympse/Glympse$EViews;Lcom/glympse/android/glympse/Glympse$EAnimations;Lcom/glympse/android/glympse/Glympse$EAnimations;)Lcom/glympse/android/glympse/Glympse$EViews;

    goto/16 :goto_0

    .line 197
    :pswitch_8
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgSettings;->OnAbout()V

    goto/16 :goto_0

    .line 142
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
    .end packed-switch
.end method

.method public show()V
    .locals 1

    .prologue
    .line 97
    invoke-super {p0}, Lcom/glympse/android/glympse/DlgList;->show()V

    .line 101
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    if-eqz v0, :cond_0

    .line 103
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgSettings;->m_oSettingAdapter:Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/DlgSettings$SettingAdapter;->notifyDataSetChanged()V

    .line 105
    :cond_0
    return-void
.end method
